<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
	</body>
	<script type="text/javascript">
		function person(name,age){
			this.name = name
			this.age = age
		}
		// 创建一个构造函数
		var person = new person('周钟捷',18)
		console.log(person.name)
		console.log(person.age)
	</script>
</html>
